package com.joint.cloud.common.exception.msg;

public class NullParameterExceptionErrorMsg extends BaseAIOpsExceptionErrorMsg {

    private String invalidParamKey;

    public NullParameterExceptionErrorMsg(String invalidParamKey) {
        this.invalidParamKey = invalidParamKey;
    }

    @Override
    public String generateErrorMsg() {
        return "Parameter '" + invalidParamKey + "' can not be null or empty.";
    }

    @Override
    public String generateErrorMsgLocal() {
        return "参数'" + invalidParamKey + "'不能为空";
    }
}
